<?php
class Task extends ProcessingDate{

	protected $id;
	protected $idBacklogItem;
	protected $idUserCreated;
	protected $idUserOwner;
	protected $idTaskState;
	protected $idSprint;
	protected $idTaskRequisite;
	protected $name;
	protected $estimatedCost;
	protected $order;
	protected $color;
	protected $description;
	protected $dateBegin;
	protected $dateLimit;
	protected $dateEnd;
	protected $status;
	protected $date;

	//Propriedades Extras
	protected $priority;
	protected $priorityClass;
	protected $nameUserOwner;
	protected $nameBacklogItem;
	protected $sprintOrder;
	protected $fieldsDBObj;
	protected $fieldsDB;
   
	function __construct(){
		$this->fieldsDB['id']						= "id_tarefa";
		$this->fieldsDB['idBacklogItem']			= "id_backlog_item";
		$this->fieldsDB['idUserCreated']			= "id_usuario_criador";
		$this->fieldsDB['idUserOwner']				= "id_usuario_responsavel";
		$this->fieldsDB['idTaskState']				= "id_tarefa_estado";
		$this->fieldsDB['idSprint']					= "id_sprint";
		$this->fieldsDB['idTaskRequisite']			= "id_tarefa_requisito";
		$this->fieldsDB['name']						= "nome";
		$this->fieldsDB['estimatedCost']			= "custo_estimado";
		$this->fieldsDB['order']					= "ordem";
		$this->fieldsDB['color']					= "cor";
		$this->fieldsDB['description']				= "descricao";
		$this->fieldsDB['dateBegin']				= "data_inicio";
		$this->fieldsDB['dateLimit']				= "data_limite";
		$this->fieldsDB['dateEnd']					= "data_finalizacao";
		$this->fieldsDB['status']					= "status";
		$this->fieldsDB['date']						= "data";
	}
	
	protected function setDefaultError(){
		trigger_error('Não é possível trocar o ID da tarefa'); 
	}
	
}
?>